package com.LearnInWorld.pojo;

/*
用户实体类


*/

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Table(name="tb_user")
public class User {

  //用户ID
  @Id
  private String id;
  //用户名
  @Id
  private String username;
  //密码，加密存储
  private String password;
  //注册手机号
  private String phone;
  //注册邮箱
  private String email;
  //创建时间
  private Date created;
  //修改时间
  private Date updated;
  //会员来源：1:PC，2：H5，3：Android，4：IOS
  private String sourceType;
  //昵称
  private String nickName;
  //真实姓名
  private String name;
  //使用状态（1正常 0非正常）
  private String status;
  //头像地址
  private String headPic;
  //QQ号码
  private String qq;
  //手机是否验证 （0否  1是）
  private String isMobileCheck;
  //邮箱是否检测（0否  1是）
  private String isEmailCheck;
  //性别，1男，0女
  private String sex;
  //会员等级
  private Long userLevel;
  //积分
  private Long points;
  //经验值
  private Long experienceValue;
  //出生年月日
  private Date birthday;
  //最后登录时间
  private Date lastLoginTime;
  //评论ID
  private Long commentsId;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  public String getSourceType() {
    return sourceType;
  }

  public void setSourceType(String sourceType) {
    this.sourceType = sourceType;
  }

  public String getNickName() {
    return nickName;
  }

  public void setNickName(String nickName) {
    this.nickName = nickName;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getHeadPic() {
    return headPic;
  }

  public void setHeadPic(String headPic) {
    this.headPic = headPic;
  }

  public String getQq() {
    return qq;
  }

  public void setQq(String qq) {
    this.qq = qq;
  }

  public String getIsMobileCheck() {
    return isMobileCheck;
  }

  public void setIsMobileCheck(String isMobileCheck) {
    this.isMobileCheck = isMobileCheck;
  }

  public String getIsEmailCheck() {
    return isEmailCheck;
  }

  public void setIsEmailCheck(String isEmailCheck) {
    this.isEmailCheck = isEmailCheck;
  }

  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }

  public Long getUserLevel() {
    return userLevel;
  }

  public void setUserLevel(Long userLevel) {
    this.userLevel = userLevel;
  }

  public Long getPoints() {
    return points;
  }

  public void setPoints(Long points) {
    this.points = points;
  }

  public Long getExperienceValue() {
    return experienceValue;
  }

  public void setExperienceValue(Long experienceValue) {
    this.experienceValue = experienceValue;
  }

  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  public Date getLastLoginTime() {
    return lastLoginTime;
  }

  public void setLastLoginTime(Date lastLoginTime) {
    this.lastLoginTime = lastLoginTime;
  }

  public Long getCommentsId() {
    return commentsId;
  }

  public void setCommentsId(Long commentsId) {
    this.commentsId = commentsId;
  }
}
